package com.zhentao.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.nlz.project.dto.TDeptDto;
import com.zhentao.nlz.project.product.TDept;
import com.zhentao.utils.Result;

import java.util.List;

/**
* @author 不.凌
* @description 针对表【t_dept(部门表)】的数据库操作Service
* @createDate 2024-09-22 21:09:18
*/
public interface TDeptService extends IService<TDept> {

    Result deptByParentId(TDeptDto deptDto);

    Result deptChildrenById(Integer parentId);

    Result deptById(Integer id);

    Result deptUpdate(TDept dept);

    Result deptDeleteByDeptId(TDept dept);

    Result deptSave(TDept dept);

    Result deptDelAll(TDept dept);

    Result deptByTenantId(Integer tenantId);

    List<TDept> deptListByTenantId(Integer tenantId);
}
